/*     */ package eos.moe.dragoncore;
/*     */ 
/*     */ import java.util.List;
/*     */ import java.util.concurrent.CopyOnWriteArrayList;
/*     */ import java.util.regex.Pattern;
/*     */ import net.minecraft.client.renderer.GlStateManager;
/*     */ import net.minecraft.item.Item;
/*     */ import net.minecraft.item.ItemStack;
/*     */ import org.lwjgl.opengl.GL11;
/*     */ import org.yaml.snakeyamla.configuration.ConfigurationSection;
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ public class uaa
/*     */ {
/*  19 */   public static uaa q = new uaa();
/*     */ 
/*     */   
/*  22 */   public List<eos/moe/dragoncore/wja> g = new CopyOnWriteArrayList<>();
/*     */ 
/*     */   
/*     */   public eos/moe/dragoncore/wja v(ItemStack itemStack, int i) {
/*  26 */     if (this.g.size() == 0) {
/*  27 */       return null;
/*     */     }
/*  29 */     String str = ve.v(itemStack, false, false);
/*  30 */     int j = Item.func_150891_b(itemStack.func_77973_b());
/*  31 */     for (eos/moe/dragoncore/wja eos/moe/dragoncore/wja : this.g) {
/*  32 */       if (eos/moe/dragoncore/wja.z(eos/moe/dragoncore/wja) == i && (eos/moe/dragoncore/wja.v(eos/moe/dragoncore/wja) == 0 || eos/moe/dragoncore/wja.v(eos/moe/dragoncore/wja) == j) && ja.v(eos/moe/dragoncore/wja.v(eos/moe/dragoncore/wja), str)) {
/*  33 */         return eos/moe/dragoncore/wja;
/*     */       }
/*     */     } 
/*  36 */     return null;
/*     */   }
/*     */   
/*     */   public void v(ItemStack itemStack, double d1, double d2, int i) {
/*  40 */     eos/moe/dragoncore/wja eos/moe/dragoncore/wja = v(itemStack, i);
/*  41 */     if (eos/moe/dragoncore/wja == null)
/*     */       return; 
/*  43 */     d1 -= (eos/moe/dragoncore/wja.z(eos/moe/dragoncore/wja) - 16.0D) / 2.0D;
/*  44 */     d2 -= (eos/moe/dragoncore/wja.v(eos/moe/dragoncore/wja) - 16.0D) / 2.0D;
/*     */     
/*  46 */     hw.v(eos/moe/dragoncore/wja.v(eos/moe/dragoncore/wja));
/*  47 */     jo.v(1.0F);
/*     */     
/*  49 */     boolean bool1 = GL11.glIsEnabled(2896);
/*  50 */     boolean bool2 = GL11.glIsEnabled(2929);
/*  51 */     boolean bool3 = GL11.glIsEnabled(3042);
/*     */ 
/*     */     
/*  54 */     GlStateManager.func_179140_f();
/*  55 */     GlStateManager.func_179097_i();
/*  56 */     GlStateManager.func_187401_a(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA);
/*     */     
/*  58 */     GlStateManager.func_179147_l();
/*  59 */     GlStateManager.func_179131_c(1.0F, 1.0F, 1.0F, 1.0F);
/*  60 */     GlStateManager.func_179118_c();
/*     */     
/*  62 */     jo.v(d1, d2, 0.0D, 0.0D, eos/moe/dragoncore/wja.z(eos/moe/dragoncore/wja), eos/moe/dragoncore/wja.v(eos/moe/dragoncore/wja), eos/moe/dragoncore/wja.z(eos/moe/dragoncore/wja), eos/moe/dragoncore/wja.v(eos/moe/dragoncore/wja));
/*     */     
/*  64 */     if (bool1) {
/*  65 */       GlStateManager.func_179145_e();
/*     */     }
/*  67 */     if (bool2) {
/*  68 */       GlStateManager.func_179126_j();
/*     */     }
/*  70 */     if (!bool3) {
/*  71 */       GlStateManager.func_179084_k();
/*     */     }
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public static class eos/moe/dragoncore/wja
/*     */   {
/*     */     private String t;
/*     */ 
/*     */ 
/*     */     
/*     */     private Pattern d;
/*     */ 
/*     */ 
/*     */     
/*     */     private int z;
/*     */ 
/*     */ 
/*     */     
/*     */     private int i;
/*     */ 
/*     */     
/*     */     private String w;
/*     */ 
/*     */     
/*     */     private double q;
/*     */ 
/*     */     
/*     */     private double g;
/*     */ 
/*     */ 
/*     */     
/*     */     public eos/moe/dragoncore/wja(ConfigurationSection configurationSection) throws ft {
/* 106 */       this.t = configurationSection.getString("match", "unknown").replace("&", "§");
/* 107 */       this.w = configurationSection.getString("texture", "unknown.png");
/* 108 */       this.i = configurationSection.getInt("type");
/* 109 */       this.z = configurationSection.getInt("mode");
/* 110 */       this.q = configurationSection.getDouble("width", 16.0D);
/* 111 */       this.g = configurationSection.getDouble("height", 16.0D);
/*     */       
/* 113 */       this.d = Pattern.compile(this.t);
/*     */     }
/*     */   }
/*     */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncor\\uaa.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */